Repository navigation
Agent turn ending with stopReason max_tokens is treated as completion; continue the session instead - #759
Merged
Conversation
…stead of completing When the model hits its per-turn output-token ceiling, the Devin ACP shim re-prompts the SAME session with the shared truncation-continuation wording, bounded by hot-reloadable Agents:Devin:MaxTokenContinuations (default 8), recording each as a token_continuation envelope. A shared OutputTokenLimit contract plus orchestrator nudge path applies the rule generically (claude/codex/agy stop shapes). Exhaustion fails terminally as output-limit-exhausted, never no-changes. CodeyBox-Prompt-Revision: 1 Co-Authored-By: CodeyBox <noreply@codeybox.invalid>
The MaxTokenContinuations feature shipped CodeyBox:Devin in appsettings.json with no matching CodeyBoxOptions property, so the unbound-key gate rejected every host, and the new shim argv flags broke the exact dispatch pin. Adds the Devin property alongside the other agent sections and extends the pin to cover the bound and wording. CodeyBox-Prompt-Revision: 1 Co-Authored-By: CodeyBox <noreply@codeybox.invalid>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated via CodeyBox — work item a4309aaf63254883ae2c41534a41ffcc
Initiated by CodeyBox operator
Co-Authored-By: CodeyBox noreply@codeybox.invalid
🤖 Generated with CodeyBox